﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Biblioteca.Logica_Negocio.Domain_Model
{
    [Table("Autores")]
    public class Autor
    {
        public Autor() {
        }

        public Autor(int id, string nombrecompleto)
        {
            this.Id = id;
            this.NombreCompleto = nombrecompleto;
        }

        public int Id { get; protected set; }

        public string NombreCompleto { get; protected set; }

        public virtual ICollection<Material> Materiales { get; protected set; }


    }
}

